﻿using System;
using System.Collections.Generic;
using System.Data.Objects;
using System.Linq;
using System.Text;

namespace ReliableAppClasses
{
	public static class ObjectQueryExtensions
	{
		public static String ToTraceString<T>(this IQueryable<T> query)
		{
			var objectQuery = query as ObjectQuery<T>;
			if (objectQuery != null)
				return String.Format("{0}{2}{1}{2}{2}", DateTime.Now, objectQuery.ToTraceString(), Environment.NewLine);
			return "";
		}
	}
}
